Skip to content

Fix various problems for building and running tests in GitHub CI #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jan 16, 2025

Conversation

jatkinson1000
Copy link
Member

@jatkinson1000 jatkinson1000 commented Jan 15, 2025

Patch to #89

Initially removed dependency pinning from sounding generation file, but there were still issues (documented various places online) with running netcdf.save on GitHub CI so I have uploaded the NetCDF file as an artifact to fix this.

I also added netCDF-Fortran that was missing from the dependencies.

Also fixes the ruff errors and pins version to avoid this in future.

Both CI checks now run, and pass.
Next stage will be for @AdelekeBankole to focus on adding exit codes to failing Fortran tests so that they appear in the CI output.

It is a binary, but unlikely to change and cannot be generated in the CI due to issues
with netcdf save in python requiring os.getlogin which doesn't work on
CI runners for some reason (similar issues can be found elsewhere).
@jatkinson1000 jatkinson1000 force-pushed the jwa-ci-dependencies-patch branch 5 times, most recently from a6e6a7a to d6ed18b Compare January 15, 2025 19:45
@jatkinson1000
Copy link
Member Author

Note I had issues getting the exported TEST_DIR variable to persist between steps so removed it.
You could play around with putting it back in but I do not feel that it is a priority at this stage.

@jatkinson1000
Copy link
Member Author

This should allow you to check off

  • Generate the sounding files using python
  • Build the code using CMake
  • Run the test suites

from #89 and move to generating exit codes for when tests fail.

@jatkinson1000 jatkinson1000 changed the title remove pins from dependencies in sounding generation requirements. Fix various problems for building and running tests in GitHub CI Jan 15, 2025
Copy link
Collaborator

@AdelekeBankole AdelekeBankole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jatkinson1000, thank you very much. Looks good to me

Co-authored-by: Marion <56403724+MarionBWeinzierl@users.noreply.github.com>
@AdelekeBankole AdelekeBankole merged commit 0b2ceec into continuous_integration Jan 16, 2025
3 checks passed
@AdelekeBankole AdelekeBankole deleted the jwa-ci-dependencies-patch branch January 16, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants